package com.itqf.proxy.dynamic_proxy2.aspect;

/**
 * @Description:
 * @Company: 千锋互联
 * @Author: 李丽婷
 * @Date: 2020/11/10
 * @Time: 下午4:15
 */
public class MyAspect {

    public  void  before(){
        System.out.println("开启事务---前置增强");
    }

    public  void  after() {
        System.out.println("提交事务---后置增强");
    }

    public  void  throwsExcption(Exception e){
        System.out.println("回滚事务----异常增强（通知）"+e.getMessage());
    }

}
